package com.yuantu.judiciary.model.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 发送授权短信表单
 *
 * @author syw
 * @since 2023-07-10
 **/
@Data
@ApiModel("发送授权短信表单")
@AllArgsConstructor
@NoArgsConstructor
public class SendAuthorizedCodeForm {
    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty("姓名")
    private String name;
    @NotBlank(message = "身份证号不能为空")
    @ApiModelProperty("身份证号")
    private String idNumber;
   // @NotBlank(message = "手机号不能为空")
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("订单id")
    private String tradeNo;

    private String codeInfo;

    public SendAuthorizedCodeForm(String name, String idNumber, String phone){
        this.name = name;
        this.idNumber = idNumber;
        this.phone = phone;
    }
}
